<?php slot('title') ?>
<?php echo __('Change Password') ?>
<?php end_slot() ?>

<div class="bread_crumb">
    <ul>
        <li><?php echo link_to(__("VideoSurv"), '@Homepage') ?>  
            &raquo;</li>
        <li> my profile
            <?php //echo link_to(__($_username), 'my_profile') ?>
            &raquo; &nbsp;
        </li>

        <li> 
            <span><?php echo __('Change Password') ?></span>
        </li>

    </ul>
    <div class="clear"></div>
</div>
<div id="dialog-modal" title="Change Password">
    <form id="changePasswordForm" method="POST" action="<?php echo url_for('@ChangePassword') ?>">
        <div class="form">
            <?php echo $_form['_csrf_token']->render(); ?>


            <div id="alerts">
                <?php if ($sf_user->hasFlash('message')): ?>
                    <?php include_partial('messages/alertMessage', array('_alert' => 'error', '_alertData' => array('Error', $sf_user->getFlash('message')))) ?>
                <?php endif ?>
            </div>
            <div class="fieldset">
                <div class="field">
                    <label class="lbl" for="model">
                        <?php echo __('Enter old Password') ?></label>
                    <?php echo $_form['password3']->render(array('class' => "txtbox medium")) ?>
                    <p class="error_msg">
                        <?php echo $_form['password3']->getError() ?>
                    </p>
                </div>

                <div class="field">
                    <label class="lbl" for="model">
                        <?php echo __('Enter New Password') ?></label>
                    <?php echo $_form['password']->render(array('class' => "txtbox medium")) ?>
                    <p class="error_msg">
                        <?php echo $_form['password']->getError() ?>
                    </p>
                </div>

                <div class="field">
                    <label class="lbl" for="model">
                        <?php echo __('Retype New Password') ?> </label>
                    <?php echo $_form['password2']->render(array('class' => "txtbox medium")) ?>

                    <p class="error_msg">
                        <?php echo $_form['password2']->getError() ?>
                    </p>

                </div>
            </div>

            <div class="field">
                <input type="submit" id="Submit1" value="<?php echo __('Change Password') ?>" name="submit" class="btn rfloat rmargin" />
                <div class="clear">
                </div>
            </div>
        </div>
    </form>
    <input type="hidden" id="changePassUrl" value="<?php echo url_for('ChangePassword') ?>" />
</div>


